package version1.part1.Server;

import version1.part1.Server.provider.ServiceProvider;
import version1.part1.Server.server.RpcServer;
import version1.part1.Server.server.impl.SimpleRPCServer;
import version1.part1.common.service.serviceImpl.UserServiceImpl;
import version1.part1.common.service.UserService;

/**
 * @author Stone
 * @version 1.0.1
 * @date 2025/9/16
 */
public class TestServer {
    public static void main(String[] args) {
        UserService userService=new UserServiceImpl();

        ServiceProvider serviceProvider=new ServiceProvider();
        serviceProvider.provideServiceInterface(userService);

        RpcServer rpcServer=new SimpleRPCServer(serviceProvider);
        rpcServer.start(9999);
    }
}
